<?php
namespace app\index\controller;
use think\Loader;
class Service extends Base{
    public function _initialize()
    {
        parent::_initialize();
        $this->assign('index_css',3);
        $this->assign('sie',pageSie(3));//页面描述与关键字
    }
    // 法律顾问
    public function counselor()
    {
        $invoking                    = Loader::model('Other','service');
        $data                        = $invoking->counselorBuy();
        $this->assign('counselor_list',$data);
        return $this->fetch();
    }


    // 法律顾问01
    public function counselor01()
    {
        $this->assign('product',product(11));//页面描述与关键字
        return $this->fetch();
    }
    // 法律顾问02
    public function counselor02()
    {
        $this->assign('product',product(12));//
        return $this->fetch();
    }
    // 法律顾问03
    public function counselor03()
    {
        $this->assign('product',product(13));//
        return $this->fetch();
    }
    // 法律顾问04
    public function counselor04()
    {
        $this->assign('product',product(14));//
        return $this->fetch();
    }


    // 股权架构
    public function gqjg()
    {
        $this->assign('product',product(3));//
        $this->assign('index_css','3.1');
        $this->assign('sie',pageSie(12));//页面描述与关键字
        return $this->fetch();
    }
    // 股权激励
    public function gqjl()
    {
        $this->assign('product',product(4));//
        $this->assign('index_css','3.1');
        $this->assign('sie',pageSie(13));//页面描述与关键字
        return $this->fetch();
    }
    // 教你打官司
    public function jndgs()
    {
        $this->assign('product',product(7));//
        $this->assign('index_css','3.1');
        $this->assign('sie',pageSie(14));//页面描述与关键字
        return $this->fetch();
    }
    // 投融资顾问
    public function trzgw()
    {
        $this->assign('product',product(5));//
        $this->assign('index_css','3.1');
        $this->assign('sie',pageSie(15));//页面描述与关键字        
        return $this->fetch();
    }
    // 律师函
    public function lawletter()
    {
        $this->assign('index_css','3.2');
        $this->assign('sie',pageSie(10));//页面描述与关键字
        $this->assign('product',product(2));//页面描述与关键字
        return $this->fetch();
    }

    // 企业劳动风险
    public function labour()
    {
        $this->assign('product',product(6));//
        $this->assign('index_css','3.1');
        $this->assign('sie',pageSie(11));//页面描述与关键字
         return $this->fetch();
    }

    //确定订单
    public function order(){
        $this->assign('index_css',8);
        $type = input('type');
        $invoking                    = Loader::model('Order','service');
        $data                        = $invoking->orderData($type);
        $this->assign('data',$data);
        return $this->fetch();
    }

    //订单支付
    public function order_pay(){
        $this->assign('index_css',8);
        $o_no   = input('o_no');
        $invoking                    = Loader::model('Order','service');
        $data                        = $invoking->orderPay($o_no);
        $this->assign('data',$data);
        return $this->fetch();
    }

    //顾问卡服务订单
    public function serve_order(){
        $sid = input('sid');
        $invoking                    = Loader::model('Order','service');
        $data                        = $invoking->serveOrder($sid);
        $this->assign('data',$data);
        return $this->fetch();
    }

    //顾问卡服务订单详情
    public function serve_details(){
        $sno                         = input('sno');
        $invoking                    = Loader::model('Order','service');
        $data                        = $invoking->servedDetails($sno);
        $this->assign('data',$data);
        return $this->fetch();
    }
}
